<script setup lang="ts">
import { useGasUsersStore } from '@/store/modules/earlyWarning/gasUsers';

const gasUsersStore = useGasUsersStore();
</script>

<template>
  <el-row :gutter="20" class="gasUsers-box">
    <el-col :span="12" v-for="item in gasUsersStore.gasUsers" :key="item.id">
      <div class="gasUsers-item-box">
        <div class="gasUsers-item-icon-box">{{ item.value }}</div>
        <div class="gasUsers-item-text-box">{{ item.name }}</div>
      </div>
    </el-col>
  </el-row>
</template>

<style scoped lang="scss">
.gasUsers-box {
  width: 100%;
  height: 100%;
}

.gasUsers-item-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;

  .gasUsers-item-icon-box {
    width: 5.625rem;
    height: 5.4162rem;
    text-align: center;
    line-height: 1.875rem;
    background: url(@/assets/largescreen/gas-icon.png) no-repeat center center;
    background-size: 100% 100%;
    font-size: 1.25rem;
    font-family: YouSheYaHei;
    font-weight: 700;
  }

  .gasUsers-item-text-box {
    margin-top: 0.1rem;
  }
}
</style>
